package com.yc.service.impl;

import com.yc.entity.Detail;
import com.yc.mapper.DetailMapper;
import com.yc.service.DetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DetailServiceImpl extends ServiceImpl<DetailMapper, Detail> implements DetailService {
    @Autowired
    private DetailMapper detailMapper;
    @Override
    public List<Detail> getDetails(Integer userId) {
        return detailMapper.getDetails(userId);
    }
}
